package com.wx.main.mapper;

import com.wx.main.pojo.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author wangxun
 */
public interface UserMapper {

  /**
   * 通过 Id 获取 User
   */
  User getUserById(Long id);

  /**
   * 获取所有的 User
   */
  @Select("SELECT * FROM `user`")
  List<User> getAllUser();
}
